Skip to content

Simplify lhs before passing to symex_assign #2230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

tautschnig
Copy link
Collaborator

This can help avoid some uses of byte_update, as the regression test shows.

This is the same as #34, created as a new PR to hopefully make Travis happy again.

@smowton
Copy link
Contributor

smowton commented May 23, 2018

Error from the test-gen testsuite: "byte-wise updates of pointers are unsupported" (from flattening/bv_pointer.cpp)

Copy link
Contributor

@smowton smowton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once the test-gen PR passes

@tautschnig
Copy link
Collaborator Author

@smowton Thanks a lot! Is there any way you could create a test for me that I can look at? What I'll need to look at is the output of --program-only on that test before and after the patch. It looks like there are more byte updates rather than fewer, which is unexpected. (In another PR I have support for byte-updates of pointers, but that's a while away.)

@smowton
Copy link
Contributor

smowton commented May 23, 2018

Test-gen doesn't have --program-only, but here are the VCC dumps which also show the problem. program-with.txt is with your patch, program-without.txt is current cbmc develop.

program-with.txt
program-without.txt

This can help avoid some uses of byte_update, as the regression test shows.
@tautschnig
Copy link
Collaborator Author

I note that #3725 is basically the same (except it would do the simplification for both LHS and RHS). I'll merge the results of the discussion in this PR and in #34 into #3725.

@tautschnig
Copy link
Collaborator Author

The test and extra safety net are being merged into the branch used in #3725, closing this one.

@tautschnig tautschnig closed this Feb 5, 2019
@tautschnig tautschnig deleted the simplify-lhs-new branch February 5, 2019 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants